package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/xx")
public ModelAndView mv(){
    System.out.println("========contorller运行=======");
    ModelAndView modelAndView = new ModelAndView();
    modelAndView.addObject("hello","hello world");
    modelAndView.setViewName("test");
    return modelAndView;
}

}
